typedef HRESULT (WINAPI *TD3DXSaveTextureToFileW)(
  _In_  LPCTSTR pDestFile,
  _In_  D3DXIMAGE_FILEFORMAT DestFormat,
  _In_  LPDIRECT3DBASETEXTURE9 pSrcTexture,
  _In_  const PALETTEENTRY *pSrcPalette
);

TD3DXSaveTextureToFileW OldD3DXSaveTextureToFileW;

DllExport HRESULT cc D3DXSaveTextureToFileW(
  _In_  LPCTSTR pDestFile,
  _In_  D3DXIMAGE_FILEFORMAT DestFormat,
  _In_  LPDIRECT3DBASETEXTURE9 pSrcTexture,
  _In_  const PALETTEENTRY *pSrcPalette
)
{
	return OldD3DXSaveTextureToFileW (pDestFile, DestFormat, pSrcTexture, pSrcPalette);
}
